import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';

@Injectable({
  providedIn: 'root'
})
export class UserManageService {

  constructor(
    private http: HttpClient
  ) { }


  /**
   * 查询用户列表（怒分页）
   * @param params 查询参数
   */
  getUserList(params): Observable<any> {
    return this.http.get('user-center/getSysUserList', {params})
  }

  /**
   * 分页查询用户列表
   * @param params 参数
   */
  getUserListByPage(params): Observable<any> {
    return this.http.get('user-center/getSysUserListByPage', {params})
  }
}
